package com.gome.bg.service;

import java.util.Date;
import java.util.Map;
//import com.gome.bg.util.DwrContextUtil;
//import com.gome.bg.util.TraceInfo;
//import com.gome.bg.util.rbToATG.*;

public class DwrCService {
	
	
//	DwrContextUtil dc= DwrContextUtil.getInstance();
//	
//	public Object notifyATG(Map map){
//		
//		TraceInfo.traceInfo(map);
//		
//		String errdesc = null;
//		String rstate = (String)map.get("refundState");
//		if(rstate.equals("S")){
//			errdesc="退款成功";
//		}else{
//			errdesc="退款失败";
//		}
//		TraceInfo.traceInfo(errdesc);
//		java.util.Calendar c = java.util.Calendar.getInstance();
//		c.setTime(new Date());
//		RefundAuditResult refundState=new RefundAuditResult();
//		refundState.setErrorDesc(errdesc); 
//		refundState.setRefundNo((String)map.get("refundNo")); 
//		refundState.setRefundFinishTime(dc.convert(c));
//		refundState.setState(rstate);
//		refundState.setRefundType("A");
//		refundState.setRefundTransId("");
//		refundState.setRefundDetailsId((String)map.get("refundDetailsId"));
//		TraceInfo.traceInfo(refundState);
//		RefundAuditResultReply rr=	dc.isCallAtGSuccess(refundState,(String)map.get("refundService"));
//		TraceInfo.traceInfo(rr);
//		System.out.println("ok==="+rr.getState());
//		return rr.getState();
//	}

}
